Skip to content

fix(toolbar): fold the toolbar for the suggestions of a swipe (#870) - #956

Merged
LeanBitLab merged 1 commit into
mainfrom
fix/toolbar-after-swipe
Nov 27, 2026
Merged

LeanBitLab merged 1 commit into
mainfrom
fix/toolbar-after-swipe

Conversation

@LeanBitLab

Copy link
Copy Markdown
Owner

Fixes #870

Problem

With the toolbar open, "Auto hide toolbar" (default on) folds it when suggestions arrive for a typed word, but not after a swipe. A finished swipe sets its suggestions before its word is composing (InputLogicHandler.showGestureSuggestionsWithPreviewVisuals, then showTailBatchInputResult), so the composing check failed and the toolbar stayed over the suggestions.

Change

The fold check (LatinIME.setSuggestedWords, now shouldAutoHideToolbar) also accepts suggestions with INPUT_STYLE_TAIL_BATCH. Updates while still swiping (INPUT_STYLE_UPDATE_BATCH) and next-word predictions keep the toolbar as before. Nothing changes with Auto hide toolbar off.

Testing

  • AutoHideToolbarTest: 5 tests, 0 failures.
  • Waydroid, before/after with the same steps (open toolbar, swipe "world"): without the fix the toolbar stayed and no suggestions showed; with the fix the toolbar folded and showed "works, world's, worlds".

With the toolbar open, "Auto hide toolbar" folded it for typed words
but not after a swipe: a finished swipe sets its suggestions before its
word is composing, so the composing check failed and the toolbar stayed
over the suggestions. The suggestions of a finished swipe now count as
suggestions for a word. Updates while still swiping and next-word
predictions still keep the toolbar.
@LeanBitLab
LeanBitLab merged commit e235e47 into main Nov 27, 2026
1 check passed
@LeanBitLab
LeanBitLab deleted the fix/toolbar-after-swipe branch November 27, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Suggestions when gesture typing

1 participant